import Http from "@/http";
import { dictionaryItemByCategoryApi } from "../system/Dictionary";

export function saveApi(params:any) {
    return params.id ? Http.put('deviceDataField/update', params) : Http.post('deviceDataField/add', params)
}



export function deleteApi(id) {
    return Http.delete('deviceDataField/delete/' + id)
}


export function listApi(deviceTypeId) {
    return Http.get('deviceDataField/list/' + deviceTypeId)
}